package cn.edu.jxau.admin.controller;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import cn.edu.jxau.service.alterMessage;

public class alterNoticeServlet extends HttpServlet {

	/**
	 * 该控制器用于修改公告
	 */
	private static final long serialVersionUID = 1L;

	
	public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

		response.setContentType("text/html;charset=utf-8");
		request.setCharacterEncoding("utf-8");
		
		alterMessage.alterNotice(request.getParameter("noticeID"),request.getParameter("content"));
		
		response.sendRedirect("readNoticeServlet");
		
	}

}
